package com.test;

public class dog extends animal{
    public dog() {
    }

    public dog(String color, int age) {
        super(color, age);
    }

    public void eat(String something)
    {
        System.out.println("年龄为"+getAge()+"的"+getColor()+"颜色的狗正在吃"+something);
    }

    public void lookhome()
    {
        System.out.println("狗在看家");
    }

}
